package com.bwie.service.impl;

import com.bwie.utils.R;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Category;
import com.bwie.mapper.CategoryMapper;
import com.bwie.service.CategoryService;
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService{

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public R getCateGory() {
        List<Category> categories = categoryMapper.selectList(null);
        return R.OK(categories);
    }
}
